package com.haha.controller.program;

import com.haha.common.ApiResponse;
import com.haha.domain.qo.SeatInfoQo;
import com.haha.domain.qo.performance.GetSessionsOfPerformanceQo;
import com.haha.domain.vo.SeatInfoVo;
import com.haha.domain.vo.performance.SessionsOfPerformanceVo;
import com.haha.service.program.ProgramService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author zouwz5
 * @date 2025/10/5 15:39
 */
@RestController
@RequestMapping("/program")
public class ProgramController {
    @Autowired
    private ProgramService programService;

    @PostMapping("/SessionsOfPerformanceV2")
    ApiResponse<List<SessionsOfPerformanceVo>> getSessionsOfPerformanceV2(@RequestBody GetSessionsOfPerformanceQo qo){
        return programService.getSessionsOfPerformanceV2(qo);
    }

    @PostMapping("/SessionsOfPerformance")
    ApiResponse<List<SessionsOfPerformanceVo>> getSessionsOfPerformanceV1(@RequestBody GetSessionsOfPerformanceQo qo){
        return programService.getSessionsOfPerformance(qo);
    }

    @PostMapping("/SeatInfo")
    ApiResponse<List<SeatInfoVo>> getSeatInfo(@RequestBody SeatInfoQo qo){
        return programService.getSeatInfo(qo);
    }



}
